/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 修改密码 PUT /sysUser/changePassword */
export async function sysUserChangePasswordUsingPut({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.sysUserChangePasswordUsingPutParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/sysUser/changePassword', {
    method: 'PUT',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 用户详情 POST /sysUser/getUserById */
export async function sysUserGetUserByIdUsingPost({
  body,
  options,
}: {
  body: API.SysUserBo51f4a34a790948ebA6c011196625406d;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingSysUserduixiang>('/sysUser/getUserById', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页获取用户 POST /sysUser/pageUser */
export async function sysUserPageUserUsingPost({
  body,
  options,
}: {
  body: API.SysUserBo12bfdf9b027442d3A4ffF89ede6af0f2;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoSysUserduixiang>('/sysUser/pageUser', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 保存用户 POST /sysUser/saveUser */
export async function sysUserSaveUserUsingPost({
  body,
  options,
}: {
  body: API.SysUserBo79b49faa812d46c3B94c181c1142c97b;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/sysUser/saveUser', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改用户 POST /sysUser/updateUser */
export async function sysUserUpdateUserUsingPost({
  body,
  options,
}: {
  body: API.SysUserBo50f31174Bff44da1Be03F6a12e8f5728;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/sysUser/updateUser', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
